
package com.epam.android.training.day6;

import com.epam.android.training.SecretContacts;

import android.app.Activity;
import android.content.ContentValues;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class Day6Activity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        Button buttonPhoneContacts = (Button) findViewById(R.id.button_phone_contacts);
        buttonPhoneContacts.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent themeActivityIntent = new Intent(getApplicationContext(), PhoneContactsActivity.class);
                startActivity(themeActivityIntent);
            }
        });

        Button buttonSecretContacts = (Button) findViewById(R.id.button_secret_contacts);
        buttonSecretContacts.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent listActivityIntent = new Intent(getApplicationContext(), SecretContactsActivity.class);
                startActivity(listActivityIntent);
            }
        });

    }
}
